package ru.spb.osll.myfit.fixtures.base;

import java.util.LinkedList;

import ru.spb.osll.myfit.util.Pair;
import fit.Parse;

public class DummyTableFixture extends MyFitTableFixture {

	@Override
	public void doStaticTable() throws Exception {
		for (LinkedList<Pair<String, Parse>> line : getCells()) {
			for (Pair<String, Parse> cell : line) {
				if (cell.getFirst().equals("OK")) {
					right(cell.getSecond());
				} else if (cell.getFirst().equals("ERROR")) {
					wrong(cell.getSecond(), "OK");
				} else {
					throw new Exception(cell.getFirst());
				}
			}
		}
	}

}
